$(function() {
    
var chartDom = document.getElementById('bingtu');
var myChart = echarts.init(chartDom);
var option;

option = {
  tooltip: {
    trigger: 'item'
  },
  legend: {
    orient: 'vertical',
    left: 'left',
    top: 100,
    bottom: 20,
    textStyle:{//图例文字的样式
                color:'#fff',
                fontSize:12
            }
  },
  series: [
    {
      name: 'Access From',
      type: 'pie',
      radius: '50%',
      data: [
        { value: 1048, name: 'A线' },
        { value: 735, name: 'B线' },
        { value: 580, name: 'C线' },
      ],
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: 'rgba(225, 225, 225, 0.5)'
        }
      },
      label: {//文本样式
              normal: {
              textStyle: {
              fontSize:14  ,// 改变标示文字的大小
              color:'#f1f1fe'
            }
          }
      }

    }
  ]
};

option && myChart.setOption(option);

});